<div ng-controller="userPersonalController">
<div class="modal fade personal-add" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true" id="add">
        <div class="modal-dialog modal-lg" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">个人用户-新增</h4>
                    </div>
                    <div class="modal-body">  
                		<form name="userpersonalAdd_form" novalidate>
                		<div class="col-xs-12 col-sm-6">
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">用户名：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text"
		                                	name="userName"
		                                	ng-minlength="2" 
		                                	ng-maxlength="32"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="user_userName"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonalAdd_form.userName.$dirty && userpersonalAdd_form.userName.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.userName.$error.required">请输入用户名</small>
										    <small class="error" ng-show="userpersonalAdd_form.userName.$error.minlength ">用户名长度在1-32之间</small>
										    <small class="error" ng-show="userpersonalAdd_form.userName.$error.maxlength">用户名长度在1-32之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                         <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">手机：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="number" 
		                                	name="mobile"
		                                	ng-minlength="2" 
		                                	ng-maxlength="11"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="mobile"
		                                	ng-pattern="/^1[3,5,8]\d{9}$/"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonalAdd_form.mobile.$dirty && userpersonalAdd_form.mobile.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.mobile.$error.pattern">请输入正确的手机号码</small>
										    <small class="error" ng-show="userpersonalAdd_form.mobile.$error.required">手机号码不能为空</small>
										    <small class="error" ng-show="userpersonalAdd_form.mobile.$error.minlength ">手机号码长度在1-11之间</small>
										    <small class="error" ng-show="userpersonalAdd_form.mobile.$error.maxlength">手机号码长度在1-11之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        <div class="form-group " >
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">昵称：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="displayName"
		                                	ng-minlength="2" 
		                                	ng-maxlength="32"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="user_displayName"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonalAdd_form.displayName.$dirty && userpersonalAdd_form.displayName.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.displayName.$error.required">请输入昵称</small>
										    <small class="error" ng-show="userpersonalAdd_form.displayName.$error.minlength ">昵称长度在1-32之间</small>
										    <small class="error" ng-show="userpersonalAdd_form.displayName.$error.maxlength">昵称长度在1-32之间</small>
			 							 </div>
		                            </div>       
	                        </div>

	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >邮箱：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="email" 
		                                	name="email"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="user_email"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonalAdd_form.email.$dirty && userpersonalAdd_form.email.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.email.$error.required">请输入邮箱</small>
										    <small class="error" ng-show="userpersonalAdd_form.email.$error.email">请输入正确的邮箱</small>
			 							 </div>
		                            </div>       
	                        </div>
							<div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">注册来源：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="registerSource"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="user_registerSource"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonalAdd_form.registerSource.$dirty && userpersonalAdd_form.registerSource.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.registerSource.$error.required">请输入注册来源</small>
			 							 </div>
		                            </div>       
	                        </div>
	                         <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >性别：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <select name="sex"  ng-model="sex" required>
		                                	<option  value="" >请选择</option>
											<option  value="0">男</option>
											<option  value="1">女</option>
										</select>
										<div class="error" ng-show="userpersonalAdd_form.sex.$dirty && userpersonalAdd_form.sex.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.sex.$error.required">请选择性别</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">头像：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="file" 
		                                	name="portrait"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="user_portrait"
		                                	/>
		                            </div>       
	                        </div>
	                       
	                        <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >用户状态：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <select name="user_status"  ng-model="user_status"  required>
		                                	<option  value="" >请选择</option>
											<option  value="0">禁用</option>
											<option  value="1">启用</option>
										</select>
										<div class="error" ng-show="userpersonalAdd_form.user_status.$dirty && userpersonalAdd_form.user_status.$invalid">
										    	<small class="error" ng-show="userpersonalAdd_form.user_status.$error.required">请选择用户状态</small>
			 							</div>

		                            </div>       
	                        </div>
	                        <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >邮箱激活状态：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <select name="user_isActivate"  ng-model="user_isActivate" required>
		                                	<option  value="" >请选择</option>
											<option  value="0">未激活</option>
											<option  value="1">激活</option>
										</select>
										<div class="error" ng-show="userpersonalAdd_form.user_isActivate.$dirty && userpersonalAdd_form.user_isActivate.$invalid">
										   	<small class="error" ng-show="userpersonalAdd_form.user_isActivate.$error.required">请选择邮箱激活状态</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >实名认证状态：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <select name="user_isAutonym" ng-model="user_isAutonym" required>
		                                	<option  value="" >请选择</option>
											<option  value="0">未认证</option>
											<option  value="1">认证</option>
										</select>
										<div class="error" ng-show="userpersonalAdd_form.user_isAutonym.$dirty && userpersonalAdd_form.user_isAutonym.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.user_isAutonym.$error.required">请选择认证状态</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        
	                    </div> 
	                    <div class="col-xs-12 col-sm-6">
	                        <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">真实姓名：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="real_name"
		                                	ng-minlength="2" 
		                                	ng-maxlength="256"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="real_name"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonalAdd_form.real_name.$dirty && userpersonalAdd_form.real_name.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.real_name.$error.required">请输入真实姓名</small>
										    <small class="error" ng-show="userpersonalAdd_form.real_name.$error.minlength ">真实姓名长度在1-256之间</small>
										    <small class="error" ng-show="userpersonalAdd_form.real_name.$error.maxlength">真实姓名长度在1-256之间</small>
			 							 </div>
		                            </div>       
	                        </div>

	                        <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">身份证：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="number" 
		                                	name="identity_card"
		                                	ng-minlength="1" 
		                                	ng-maxlength="32"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="identity_card"
		                                	ng-pattern="/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonalAdd_form.identity_card.$dirty && userpersonalAdd_form.identity_card.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.identity_card.$error.pattern">身份证格式不对</small>
										    <small class="error" ng-show="userpersonalAdd_form.identity_card.$error.required">身份证不能为空</small>
										    <small class="error" ng-show="userpersonalAdd_form.identity_card.$error.minlength ">身份证长度在1-32之间</small>
										    <small class="error" ng-show="userpersonalAdd_form.identity_card.$error.maxlength">身份证长度在1-32之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        
	                         <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">电话：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" name="phone"autocomplete="off" class="form-control" ng-model="phone"/>
		                            </div>       
	                        </div>
	                         <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">用户文件夹：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="userFolder"
		                                	ng-minlength="2" 
		                                	ng-maxlength="32"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="user_userFolder"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonalAdd_form.userFolder.$dirty && userpersonalAdd_form.userFolder.$invalid">
										    <small class="error" ng-show="userpersonalAdd_form.userFolder.$error.required">请输入用户文件夹</small>
										    <small class="error" ng-show="userpersonalAdd_form.userFolder.$error.minlength ">用户文件夹长度在1-32之间</small>
										    <small class="error" ng-show="userpersonalAdd_form.userFolder.$error.maxlength">用户文件夹长度在1-32之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        
	                        <div class="form-group ">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">出生年月：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="date"  autocomplete="off" class="form-control" ng-model="birthday "/>
		                            </div>       
	                        </div>
	                        <div class="form-group " >
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >城市：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="city"/>
		                        </div>       
	                        </div>
	                        <div class="form-group " >
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >地址：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="address"/>
		                        </div>       
	                        </div>
	                        <div class="form-group " >
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >qq号：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="qq"/>
		                        </div>       
	                        </div>
	                        <div class="form-group " >
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >邮编：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="post_code"/>
		                        </div>       
	                        </div>
	                        <div class="form-group " >
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >学校：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="school"/>
		                        </div>       
	                        </div>
	                        </div>
  						</form>
  						<div class="col-sm-12">
  							<div class="col-sm-12">
		  						<div class="modal-footer">
		  							<!---->
		  							<button type="button" class="btn btn-primary" ng-disabled="userpersonalAdd_form.$invalid"  ng-click="add()">新增</button></div>
		                		</div>
	                		</div>
                		</div>
                   	</div>
                
            	</div>

	</div>
<!-- 新增 END -->
</div>	
